import type { LoginWxresult } from '@/types/login'
import { http } from '@/utils/http'

type LoginParams = {
  code: string
  encryptedData: string
  iv: string
}
export const postLoginWxLoginApi = (data: LoginParams) => {
  return http<LoginWxresult>({
    method: 'POST',
    // url: '/login/wxMin',
    url: '/login/wxMin/simple', // 内侧模拟
    data,
  })
}
// 内侧模拟登录
export const postLoginWxSimpleApi = (data: { phoneNumber: string }) => {
  return http<LoginWxresult>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data,
  })
}
